<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>文章列表</title>
    <link rel="stylesheet" href="/bigevent/assets/lib/layui/css/layui.css" />
    <link rel="stylesheet" href="/bigevent/assets/lib/cropper/cropper.css" />
    <link rel="stylesheet" href="/bigevent/assets/css/release.css" />
  </head>
  <body>
    <div class="layui-card article">
      <div class="layui-card-header">修改文章</div>
      <div class="layui-card-body">
        <div class="layui-form">
          <form class="layui-form" id="articleForm" lay-filter="articleForm">
            <input type="text" name="Id" class="layui-hide" />
            <div class="layui-form-item">
              <label class="layui-form-label">文章标题</label>
              <div class="layui-input-block">
                <input
                  type="text"
                  name="title"
                  placeholder="请输入标题"
                  autocomplete="off"
                  class="layui-input"
                  lay-verify="required"
                />
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">文章类别</label>
              <div class="layui-input-block">
                <select
                  name="cate_id"
                  lay-verify="required"
                  class="choose"
                ></select>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">文章内容</label>
              <div class="layui-input-block">
                <textarea name="content"></textarea>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">文章封面</label>
              <div class="layui-input-block">
                <div class="row1">
                  <!-- 图片裁剪区域 -->
                  <div class="cropper-box">
                    <!-- 这个 img 标签很重要，将来会把它初始化为裁剪区域 -->
                    <img id="image" src="/bigevent/assets/images/sample.jpg" />
                  </div>
                  <!-- 图片的预览区域 -->
                  <div class="preview-box">
                    <!-- 宽高为 100px 的预览区域 -->
                    <div class="img-preview w100"></div>
                    <button
                      type="button"
                      class="layui-btn layui-btn-danger"
                      id="chooseImage"
                    >
                      选择封面
                    </button>
                  </div>
                </div>
                <div class="row2">
                  <input
                    type="file"
                    id="file"
                    accept="image/*"
                    class="layui-hide"
                  />
                  <button class="layui-btn upload" lay-submit>上传</button>
                  <button class="layui-btn layui-btn-primary draft" lay-submit>
                    存为草稿
                  </button>
                </div>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
    <script type="text/html" id="cateSltAtc">
      <option value="">请选择文章类别</option>
      {{each data v}}
      <option value="{{v.Id}}" dataid="{{v.Id}}">{{v.name}}</option>
      {{/each}}
    </script>

    <script src="/bigevent/assets/lib/tinymce/tinymce.min.js"></script>
    <script src="/bigevent/assets/lib/tinymce/tinymce_setup.js"></script>
    <script src="/bigevent/assets/lib/template-web.js"></script>

    <script src="/bigevent/assets/lib/jquery.js"></script>

    <script src="/bigevent/assets/lib/cropper/Cropper.js"></script>
    <script src="/bigevent/assets/lib/cropper/jquery-cropper.js"></script>
    <script src="/bigevent/assets/lib/layui/layui.all.js"></script>
    <script src="/bigevent/assets/js/common.js"></script>
    <script src="/bigevent/assets/js/article/release.js"></script>
  </body>
</html>
